package cn.mapper;

import cn.dto.Query;
import cn.entity.Research;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResearchMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Research record);

    int insertSelective(Research record);

    Research selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Research record);

    int updateByPrimaryKeyWithBLOBs(Research record);

    int updateByPrimaryKey(Research record);

    Research selectResearchByMenuId(Integer menuId);

    List<Research> selectResearchList(Query query);

    int totalNum();
}